﻿using System.Collections.Generic;
using ATTools.Models;
using Orchard.Environment.Extensions;

namespace ATTools.ViewModels
{
    [OrchardFeature("ATTools")]
    public class SoundPartViewModel
    {
        public SoundPart Part { get; set; }
        public IEnumerable<Voice> AvailableLanguages { get; set; }

        public string LanguageOfSound
        {
            get { return Part.Record.LanguageOfSound; }
            set { Part.Record.LanguageOfSound = value; }
        }

        public bool UseCustomSound
        {
            get { return Part.Record.UseCustomSound; }
            set { Part.Record.UseCustomSound = value; }
        }

    }
}